package com.hm.shopping.def;

/**
 * @author shishun.wang
 * @date 2018年1月17日 下午8:45:57
 * @version 1.0
 * @describe 新闻公告类型
 */
public enum NewsAnnouncementEnum {

	/**
	 * 优惠
	 */
	PREFERENTIAL("PREFERENTIAL","优惠"),
	
	/**
	 * 公告
	 */
	ANNOUNCEMENT("ANNOUNCEMENT","公告");

	private String status;

	private String desc;

	private NewsAnnouncementEnum(String status, String desc) {
		this.status = status;
		this.desc = desc;
	}

	public String desc() {
		return this.desc;
	}

	public String status() {
		return this.status;
	}

	public static NewsAnnouncementEnum trance(String status) {
		for (NewsAnnouncementEnum statusDef : NewsAnnouncementEnum.values()) {
			if (statusDef.name().equals(status)) {
				return statusDef;
			}
		}
		return null;
	};
}
